var text/template/parse.maxStackDepth

3 uses

	text/template/parse (current package)
		parse.go#L48: var maxStackDepth = 10000
		parse.go#L53: 		maxStackDepth = 1000
		parse.go#L803: 		if t.stackDepth >= maxStackDepth {